package com.zhejiangzhengyuan.municipal_common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.sql.Timestamp;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 认证主体与业务系统内用户账户的关联表，建立一对一的关联关系
 * </p>
 *
 * @author linju
 * @since 2019-11-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SubjectUserInfoMapping对象", description="认证主体与业务系统内用户账户的关联表，建立一对一的关联关系")
public class SubjectUserInfoMapping extends Model<SubjectUserInfoMapping> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增主键")
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "认证主体外键")
    private Long subjectId;

    @ApiModelProperty(value = "业务系统内用户外键")
    private Long userInfoId;

    @ApiModelProperty(value = "记录的创建时间")
    private Timestamp createTime;

    @ApiModelProperty(value = "记录的更新时间")
    private Timestamp updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
